<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>Carousel</title>
  <link rel="stylesheet" href="../../build/css/onsenui.css">
  <link rel="stylesheet" href="../../build/css/onsen-css-components.css">

  <script src="../../build/js/onsenui.js"></script>

  <script>

  </script>

  <style>
    .item-label {
      display: table-cell;
      vertical-align: middle;
      color: white;
      line-height: 1;
      font-size: 48px;
      font-weight: bold;
    }
  </style>

</head>

<body>

  <ons-page>
    <ons-toolbar>
      <div class="left">
        <ons-toolbar-button onclick="myCarousel.prev()">-</ons-toolbar-button>
      </div>
      <div class="center">Carousel</div>
      <div class="right">
        <ons-toolbar-button onclick="myCarousel.next()">+</ons-toolbar-button>
      </div>
    </ons-toolbar>
    <ons-carousel id="myCarousel" initial-index="2" swipeable overscrollable auto-scroll auto-refresh fullscreen auto-scroll-ratio="0.2">
      <ons-carousel-item style="background-color: gray;">
        <div class="item-label">GRAY</div>
      </ons-carousel-item>
      <ons-carousel-item style="background-color: #085078;">
        <div class="item-label">BLUE</div>
      </ons-carousel-item>
      <ons-carousel-item style="background-color: #373B44;">
        <div class="item-label">DARK</div>
      </ons-carousel-item>
      <ons-carousel-item style="background-color: #D38312;">
        <div class="item-label">ORANGE</div>
      </ons-carousel-item>
    </ons-carousel>
  </ons-page>

</body>
</html>
